<table class="layui-table layui-form">
                                <thead>
                                    <tr>
                                        <th width="70">编号</th>
                                        <th>原料名</th>
                                        <th>是否使用</th>
                                        <th>操作</th>
                                </thead>
                                <tbody class="x-cate">
                                <foreach name="list" item="val">
                                    <tr cate-id='1' fid='0'>
                                        <td>{$key+1}</td>
                                        <td>{$val['value']}</td>
                                        <td>{$val['inuse'] == 1 ? '启用' : '禁用'}</td>
                                        <td class="td-manage">
                                            <a href="/Admin/FoodProduct/addMaterial?id={$val['id']}">
                                                <button class="layui-btn layui-btn layui-btn-xs">编辑</button>
                                            </a>
                                        </td>
                                    </tr>
                                </foreach>
                                </tbody>
                            </table>
                            <div class="layui-card-body ">
                                <div class="page">
                                    {$page}
                                </div>
                            </div>